package com.huilian.iotbox.data.enums;

import lombok.Getter;

/**
 * ICT纸钞机
 *
 * @author chenqiwen
 * @CreateDate: 2021-05-12-11-03
 * @Description:
 */
@Getter
public enum ExternalDeviceICTEnum {

    INIT("", "808F", "第一次上电，纸钞机给控制板发送"),
    INIT_HANDSHAKE("02", "", "初始化握手"),
    INIT_FAIL("", "26", "2秒内纸钞机收不到控制板发来的02握手指令"),
    FIRST_DENOMINATION("", "818F40", "第一个面额"),
    SECOND_DENOMINATION("", "818F41", "第二个面额"),
    THIRD_DENOMINATION("", "818F42", "第三个面额"),
    FOURTH_DENOMINATION("", "818F43", "第四个面额"),
    FIFTH_DENOMINATION("", "818F44", "第五个面额"),
    SIXTH_DENOMINATION("", "818F45", "第六个面额"),
    RECEIVE_MONEY("02", "", "接收钞票"),
    REFUSE_TO_ACCEPT_THE_MONEY("0f", "", "拒收钞票"),
    TEMPORARY_MONEY("0f", "", "暂存钞票"),
    NOTE_PRESSURE_WAREHOUSE_SUCCESS("", "10", "纸币压仓成功"),
    NOTE_PRESSURE_WAREHOUSE_FAIL("", "11", "纸币压仓失败"),

    THE_MOTOR_FAULT("", "20", "马达故障"),
    CHECK_CODE_FAULT("", "21", "检验码故障"),
    CARD_CURRENCY("", "22", "卡币"),
    PAPER_MONEY_AWAY("", "23", "纸币移开"),
    CASHBOX_REMOVED("", "24", "钱箱移开"),
    MAGIC_EYE_TROUBLE("", "25", "电眼故障"),
    FISH("", "27", "钓鱼"),
    CASHBOX_FAULT("", "28", "钱箱故障"),
    REJECT("", "29", "拒收"),
    INVALID_INSTRUCTION("", "2A", "无效的指令"),
    KEEP_USING("", "2E", "保留用"),
    END_OF_ABNORMAL_SITUATION("", "2F", "异常情况结束"),

    NORMAL_OPERATION("3E", "3E", "请纸币器（禁能状态）进入正常收钞状态"),
    PROHIBITION("5E", "5E", "请纸币器（使能状态）进入禁止收钞状态"),

    GENERAL("GENERAL", "GENERAL", "通用，不属于纸钞命令"),

    ;

    // 协议-发送
    private String sendTCP;
    // 协议-回答
    private String answerTCP;
    // 面额
    private String desc;

    ExternalDeviceICTEnum(String sendTCP, String answerTCP, String desc) {
        this.sendTCP = sendTCP;
        this.answerTCP = answerTCP;
        this.desc = desc;
    }


}
